nextSibling

public abstract Optional<Node> nextSibling()

Returns an Optional that contains the next node in the document tree if such a node exists, otherwise returns an empty Optional.

Throws

when this node is closed